package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qijian.maindata.domain.InspectionPlanDetail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * 检验计划详情Mapper接口
 *
 * @author qijian
 * @date 2022-12-14
 */
public interface InspectionPlanDetailMapper extends BaseMapper<InspectionPlanDetail> {

    @Select("select count(0) from main_inspection_plan_detail WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();

    @Update("update main_inspection_plan_detail set res_status = #{resStatus} where id = #{id}")
    int updateResStatus(@Param("resStatus") int resStatus,@Param("id") Long id);
}
